package deweb.cimaplanning.reports.corn_position;

import java.util.Vector;

public class Transports {
	protected int transportId;
	
	/*
	 * Nombre corto del transporte
	 */
	protected String shortName;
	
	/*
	 * Prioridad del tipo de transporte
	 */
	protected int priority;
	
	/*
	 * Si por lo menos una OC de este transporte de la version trae maiz importado entonces es verdadero
	 */
	protected boolean imported;
	
	/*
	 * Si por lo menos una OC de este transporte de la version trae maiz local entonces es verdadero
	 */
	protected boolean local;
	
	/*
	 * OC de este tipo de transporte
	 */
	protected Vector po;
	
	/**
	 * Method 'Transports'
	 * 
	 */
	public Transports() {
	}

	/**
	 * @return the transportId
	 */
	public int getTransportId() {
		return transportId;
	}

	/**
	 * @param transportId the transportId to set
	 */
	public void setTransportId(int transportId) {
		this.transportId = transportId;
	}

	/**
	 * @return the shortName
	 */
	public String getShortName() {
		return shortName;
	}

	/**
	 * @param shortName the shortName to set
	 */
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	/**
	 * @return the priority
	 */
	public int getPriority() {
		return priority;
	}

	/**
	 * @param priority the priority to set
	 */
	public void setPriority(int priority) {
		this.priority = priority;
	}

	/**
	 * @return the imported
	 */
	public boolean isImported() {
		return imported;
	}

	/**
	 * @param imported the imported to set
	 */
	public void setImported(boolean imported) {
		this.imported = imported;
	}

	/**
	 * @return the local
	 */
	public boolean isLocal() {
		return local;
	}

	/**
	 * @param local the local to set
	 */
	public void setLocal(boolean local) {
		this.local = local;
	}

	/**
	 * @return the po
	 */
	public Vector getPo() {
		return po;
	}

	/**
	 * @param po the po to set
	 */
	public void setPo(Vector po) {
		this.po = po;
	}
	
	/**
	 * @param po the PurchaseOrder to add
	 */
	public void addPo(PurchaseOrder po){
		this.po.addElement(po);
	}
	
	public void trimToSizePo(){
		this.po.trimToSize();
	}
	
	public void newPo(int initialCapacity, int capacityIncrement){
		this.po = new Vector(initialCapacity, capacityIncrement);
	}
}
